var express = require("express");
var router = express.Router();
var { RouterModel } = require("../db/model");

/* GET users listing. */
router.get("/", function (req, res, next) {
  res.send("respond with a resource");
});

router.get('/routerall',async (res,req)=>{
    let data=await RouterModel.find()
    req.send({
        code:200,
        data:data
    })
})

module.exports = router;